{% extends "base.html" %}

{% block content %}
<h2>Display log entries for:</h2>
<br />
<div  class="box_bg boxes">
<form action="/log/view" method="POST">
Account:
<select name="account_key">
{% for account in accounts %}
    <option value="{{account.key}}"
    {% ifequal account.key cur_user.key %}
        selected="selected"
    {% endifequal %}>{{account.user}}</option>
{% endfor %}
Number:
<input type="submit" value="Get Logs">
</form>
</div>

<br />

<div id="log-cont">

<div id="login" class="boxes box_bg">
{%for log in logs %}
{{log.accountName}} at <em>{{log.created_at}}</em>
<br/>
{{log.currentPlanet}}<br/>
Message: {{log.message}}<br/>
{{log.cost}}<br/>
<br/>
{% endfor %}
</div>
</div>
{% endblock %}